package org.supda.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TButton entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_button", catalog = "comsys")
public class TButton implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String button;
	private String description;
	private Short valid;

	// Constructors

	/** default constructor */
	public TButton() {
	}

	/** full constructor */
	public TButton(String name, String button, String description) {
		this.name = name;
		this.button = button;
		this.description = description;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "name", length = 30)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "button", length = 200)
	public String getButton() {
		return this.button;
	}

	public void setButton(String button) {
		this.button = button;
	}

	@Column(name = "description", length = 100)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "valid", nullable = false)
	public Short getValid() {
		return valid;
	}

	public void setValid(Short valid) {
		this.valid = valid;
	}

}